#include<iostream>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<string>
#include<cstring>

#include"clientconnetion.hpp"
int main(int argc,char* argv[])//./clent 121.0.0.1 8080
{
    if(argc!=3)
    {
        LOG(FATAL)<<"Usage:./client ip port";
        return USAGE_ERROR;
    }
    uint16_t port=std::stoi(argv[2]);
    std::string ip=argv[1];

    client client(port,ip);
    client.excute();

    return 0;
}
